package com.lanou3g.musicenjoy.eventbus;

import java.util.List;
import java.util.Map;

/**
 * Created by 辛鑫 on 15/10/30.
 */
public class MyEvent {

    //从歌曲列表中向服务中传递值
    public static class PassData {
        List<?> data;
        int position;


        public PassData(List<?> data, int position) {
            this.data = data;
            this.position = position;
        }

        public List<?> getData() {
            return data;
        }

        public int getPosition() {
            return position;
        }

    }

    //从服务中向activity中传值
    public static class getServiceData {
        List<?> data;
        boolean isGet;
        int position;

        public getServiceData(List<?> data, boolean isGet, int position) {
            this.data = data;
            this.isGet = isGet;
            this.position = position;
        }

        public List<?> getData() {
            return data;
        }

        public boolean isGet() {
            return isGet;
        }

        public int getPosition() {
            return position;
        }
    }

    //QQ登录传值
    public static class Landing {
        Map<String, Object> data;

        public Landing(Map<String, Object> data) {
            this.data = data;
        }

        public Map<String, Object> getData() {
            return data;
        }
    }

    //扫描状态传值
    public static class Flag {
        int what;

        public Flag(int what) {
            this.what = what;
        }

        public int getWhat() {
            return what;
        }

    }

    //推荐更多
    public static class Recommend {
        int a;

        public Recommend(int a) {
            this.a = a;
        }

        public int getA() {
            return a;
        }
    }

    //微博登陆传值
    public static class weiboLanding {
        Map<String, Object> info;

        public weiboLanding(Map<String, Object> info) {
            this.info = info;
        }

        public Map<String, Object> getInfo() {
            return info;
        }
    }

    //activity通知服务
    public static class isStart {
        boolean isStart;

        public isStart(boolean isStart) {
            this.isStart = isStart;
        }

        public boolean isStart() {
            return isStart;
        }

    }

    //播放条点击下一首时向播放页面发送消息
    public static class IsNext {
        boolean isNext;

        public IsNext(boolean isNext) {
            this.isNext = isNext;
        }

        public boolean IsNext() {
            return isNext;
        }
    }

    // 循环模式
    public static class RecycleMode{
        int mode;

        public RecycleMode(int mode) {
            this.mode = mode;
        }

        public int getMode() {
            return mode;
        }
    }
    //顺序播放完成
    public static class IsFinish {
        boolean finish;

        public IsFinish(boolean finish) {
            this.finish = finish;
        }

        public boolean isFinish() {
            return finish;
        }
    }
    //开始播放音乐
    public static class Isplay {
        boolean play;

        public Isplay(boolean play) {
            this.play = play;
        }


        public boolean isPlay() {
            return play;
        }
    }
    //自动播放下一首时服务向两个activity发送消息
    public static class AutoNext {
        boolean next;

        public AutoNext(boolean next) {
            this.next = next;
        }

        public boolean isNext() {
            return next;
        }
    }


    //下载时传递数据
    public static class DownlaodData {
        String url;
        String songName;
        String picUrl;

        public DownlaodData(String picUrl, String songName, String url) {
            this.picUrl = picUrl;
            this.songName = songName;
            this.url = url;
        }

        public String getUrl() {
            return url;
        }

        public String getSongName() {
            return songName;
        }

        public String getPicUrl() {
            return picUrl;
        }
    }


    public static class  PlayMenu {

        List<?> songMenu;
        int a;

        public PlayMenu(int a, List<?> songMenu) {
            this.a = a;
            this.songMenu = songMenu;
        }

        public int getA() {
            return a;
        }

        public List<?> getSongMenu() {
            return songMenu;
        }
    }
}
